export const logger = function (...msg) {
    if (process.env.NODE_ENV === 'development') {
        let info = {
            time: new Date().toISOString(),
            message: msg
        }
        console.log(info)
    }
}

export default {

    install(Vue) {
        Vue.prototype.logger = logger
    }
}
